<!DOCTYPE html>
<html lang="zh-CN" style="height: 100%">
<head>
  <meta charset="utf-8">
  <title>ECharts</title>
  <script type="text/javascript" src="https://fastly.jsdelivr.net/npm/echarts@5.4.2/dist/echarts.min.js"></script>
  <link href="https://cdn.staticfile.net/twitter-bootstrap/5.1.1/css/bootstrap.min.css" rel="stylesheet">
  <script src="https://cdn.staticfile.net/twitter-bootstrap/5.1.1/js/bootstrap.bundle.min.js"></script>
  <style>
    .row {
      margin-left: 0;
      margin-right: 0;
    }
    .col {
      padding-left: 0;
      padding-right: 0;
    }
  </style>
</head>
<body style="height: 100%; margin: 0">

  <div class="row">
    <div id="container_xxx">.col</div>
    <div id="container_1" style="width: 650px; height: 400px; margin: 0; padding: 0;" class="col bg-dark"></div>
  </div>

  <div class="row">
    <div id="container_2" style="width: 650px; height: 400px; margin: 0; padding: 0;" class="col bg-dark"></div>
    <div id="container_3" style="width: 650px; height: 400px; margin: 0; padding: 0;" class="col bg-dark"></div>
  </div>

  <div class="row">
    <div id="container_4" style="width: 650px; height: 400px; margin: 0; padding: 0;" class="col bg-dark"></div>
    <div id="container_5" style="width: 650px; height: 400px; margin: 0; padding: 0;" class="col bg-dark"></div>
  </div>

  <script type="text/javascript">
   
    var myChart_1 = echarts.init(document.getElementById('container_1'));
    var myChart_2 = echarts.init(document.getElementById('container_2'));
    var myChart_3 = echarts.init(document.getElementById('container_3'));
	var myChart_4 = echarts.init(document.getElementById('container_4'));
	var myChart_5 = echarts.init(document.getElementById('container_5'));

    var option = {
        title: {
          text: "变动趋势",
          left: "40%",
          top:"2%",
          textStyle: {
            fontSize: 25,
            color:"#1FC3CE"
          }
        },
        backgroundColor: '#031A32',
        tooltip: {
            trigger: "axis",
            axisPointer: {
            type: "shadow",
            label: {
                show: true
            }
        },
        formatter(params) {
            var relVal = params[0].name;
            for (var i = 0, l = params.length; i < l; i++) {
                relVal += '<br/>' + params[i].marker + params[i].seriesName + ' : ' + Number(params[i].value).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, '$1,')
            }
            return relVal;
        },
    },
    grid: {
        left: "10%",
        top: "20%",
        right: "5%",
        bottom: "10%"
    },
    legend: {
        data: ["各月资产变动"],
        top: "10%",
        right:"5%",
        textStyle: {
            color: "#1FC3CE",
            fontSize: 14
        },
        selected: {'昨日使用率': false}
    },
    xAxis: {
        data: [
            "2022.01",
            "2022.02",
            "2022.03",
            "2022.04",
            "2022.05",
            "2022.06",
            "2022.07",
            "2022.08",
            "2022.09",
            "2022.10",
            "2022.11",
            "2022.12"
        ],
        axisLine: {
            show: true,
            lineStyle: {
                color: "#3d5269",
                width: 1
            }
        },
        axisTick: {
            show: true,
            alignWithLabel: true
        },
        axisLabel: {
            show: true,
            textStyle: {
                color: "#396A87",
                fontSize: 14
            },
            interval: 0,
            rotate: 30
        }
    },
    yAxis: [{
            type: "value",
            name: "金额",
            nameTextStyle: {
                color: "#396A87",
                fontSize: 14
            },
            splitLine: {
                show: true,
                lineStyle: {
                    width: 1,
                    color: "#3d5269"
                }
            },
            axisTick: {
                show: true
            },
            axisLine: {
                show: true
            },
            axisLabel: {
                show: true,
                textStyle: {
                    color: "#396A87",
                    fontSize: 14
                },
                formatter:function(value,index){
                    return value.toFixed(1)
                }
            }
        }
    ],
    series: [
        {
            name: "各月资产变动",
            type: "bar",
            barWidth: 18,
            itemStyle: {
                normal: {
                    color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
                            offset: 0,
                            color: "#E29052"
                        },
                        {
                            offset: 1,
                            color: "#FA5A53"
                        }
                    ])
                }
            },
            data: [133, 23, 114, 67, 89, 35, 67, 96, 90, 46, 75, 85]
        }
    ]
  }
  myChart_1.setOption(option);
  myChart_2.setOption(option);
  myChart_3.setOption(option);
  myChart_4.setOption(option);
  myChart_5.setOption(option);

  </script>
</body>
</html>